package com.zenithmind.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zenithmind.article.pojo.domain.Tag;
import com.zenithmind.article.pojo.query.TagQuery;
import com.zenithmind.common.result.PageResult;

import java.util.List;
import java.util.Map;

public interface TagService extends IService<Tag> {
    PageResult<Tag> pageTag(TagQuery tagQuery);

    Tag addOrUpdateTag(Tag tag);
    
    /**
     * 获取热门标签
     * @param limit 返回数量限制
     * @return 热门标签列表
     */
    List<Map<String, Object>> getHotTags(Integer limit);
}
